conversion of fraction to decimal and vice versa